package com.wlzg.collectiontool.model.bean

import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.google.gson.annotations.SerializedName
import com.wlzg.collectiontool.db.HunjieConvert
import com.wlzg.collectiontool.db.ImageConvert
import com.wlzg.collectiontool.util.DateUtil

@Entity(tableName = "psguanxian")
@TypeConverters(HunjieConvert::class, ImageConvert::class)
 class PsGuanxian :BaseGuandian(){
    @PrimaryKey(autoGenerate = true)
    var gxId: Long? = null
    @SerializedName("checkDate")
    var checkDate: String? = null

    @SerializedName("checkMethod")
    var checkMethod = 0

    @SerializedName("checkdirect")
    var checkdirect = 0

    @SerializedName("connType")
    var connType = 0

    @SerializedName("constrMet")
    var constrMet = 0

    @SerializedName("constructi")
    var constructi: String? = null

    @SerializedName("createBy")
    var createBy: String? = null

    @SerializedName("createTime")
    var createTime: String? = null

    @SerializedName("datasource")
    var datasource = 0

    @SerializedName("defects")
    var defects = 0

    @SerializedName("delFlag")
    var delFlag = 0

    @SerializedName("districtId")
    var districtId: String? = null

    @SerializedName("districtName")
    var districtName: String? = null

    @SerializedName("endsurface")
    var endsurface:Double = 0.0

    @SerializedName("endx")
    var endx = 0

    @SerializedName("endx1")
    var endx1:Double= 0.0

    @SerializedName("endy")
    var endy = 0

    @SerializedName("endy1")
    var endy1 = 0.0

    @SerializedName("flowdirect")
    var flowdirect = 0

    @SerializedName("inElev")
    var inElev = 0

    @SerializedName("inJuncid")
    var inJuncid: String? = null

    @SerializedName("inJuncidMs")
    var inJuncidMs: String? = null

    @SerializedName("invertsilp")
    var invertsilp = 0

    @SerializedName("isComplete")
    var ifComplete = 0

    @SerializedName("jointType")
    var jointType = 0

    @SerializedName("judgeDispose")
    var judgeDispose = 0

    @SerializedName("linerMate")
    var linerMate = 0

    @SerializedName("linerThic")
    var linerThic = 0

    @SerializedName("locationcode")
    var locationcode: String? = null

    @SerializedName("manholeid")
    var manholeid: String? = null

    @SerializedName("material")
    var material = 0

    @SerializedName("materialName")
    var materialName: String? = null

    @SerializedName("objectid")
    var objectid = 0

    @SerializedName("originstru")
    var originstru = 0

    @SerializedName("outElev")
    var outElev = 0

    @SerializedName("outJuncid")
    var outJuncid: String? = null

    @SerializedName("outJuncidMs")
    var outJuncidMs: String? = null

    @SerializedName("ownership")
    var ownership: String? = null

    @SerializedName("pipeCateg")
    var pipeCateg = 0

    @SerializedName("pipeJuli")
    var pipeJuli: String? = null

    @SerializedName("pipeLengt")
    var pipeLengt = 0

    @SerializedName("pipePic")
    var pipePic: String? = null

    @SerializedName("pipecode")
    var pipecode: String? = null

    @SerializedName("pipeid")
    var pipeid: String? = null

    @SerializedName("pipename")
    var pipename: String? = null

    @SerializedName("pressureT")
    var pressureT = 0

    @SerializedName("rainsewami")
    var rainsewami = 0

    @SerializedName("recordDat")
    var recordDat: String? = null

    @SerializedName("remark")
    var remark: String? = null

    @SerializedName("remark2")
    var remark2: String? = null

    @SerializedName("reportDat")
    var reportDat: String? = null

    @SerializedName("reportUni")
    var reportUni: String? = null

    @SerializedName("roadName")
    var roadName: String? = null

    @SerializedName("roadid")
    var roadid = 0

    @SerializedName("roughness")
    var roughness = 0

    @SerializedName("selfwashin")
    var selfwashin = 0

    @SerializedName("shape")
    var shape: String? = null

    @SerializedName("shapeDa1")
    var shapeDa1: String? = null

    @SerializedName("shapeDa2")
    var shapeDa2: String? = null

    @SerializedName("shapeDa3")
    var shapeDa3: String? = null

    @SerializedName("shapeData")
    var shapeData: String? = null

    @SerializedName("shapetype")
    var shapetype = 0

    @SerializedName("starsurfac")
    var starsurfac:Double = 0.0

    @SerializedName("startx")
    var startx = 0

    @SerializedName("startx1")
    var startx1 = 0.0

    @SerializedName("starty")
    var starty = 0

    @SerializedName("starty1")
    var starty1 = 0.0

    @SerializedName("status")
    var status = 0

    @SerializedName("updateBy")
    var updateBy: String? = null

    @SerializedName("updateTime")
    var updateTime: String? = null

    @SerializedName("wallThick")
    var wallThick = 0
   var projectName:String=""
   var gcName:String=""
   var checkLength:String="0"


   init {
      createTime= DateUtil.getCurData()
   }
}